/*!
 * @file actionQuit.cpp
 * @brief Ciało actionQuit.hh
 */

#include "engine/cmd/actionQuit.hh"
using namespace std;

/*--------------------------------------------------------------------------*/

actionQuit::actionQuit() :
	actionBase("quit") {
}

/*--------------------------------------------------------------------------*/

void actionQuit::doAction(std::string *array, int count, std::stringstream *ss) {

	if(count == 1){
		pawirr::quit(QNORMAL);
	}
	else if(count == 2){
		if(array[1] == "normal"){
			pawirr::quit(QNORMAL);
		}
		else if(array[1] == "brutal"){
			pawirr::quit(QBRUTAL);
		}
	}

}

/*--------------------------------------------------------------------------*/
